package cn.edu.cdu.farmdeal.mapper;

import cn.edu.cdu.farmdeal.domain.UserProduct;
import cn.edu.cdu.farmdeal.domain.UserProductExample;
import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
@Mapper

public interface UserProductMapper {
    List<UserProduct> getUserPro();

    int countByExample(UserProductExample example);

    int deleteByExample(UserProductExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(UserProduct record);

    int insertSelective(UserProduct record);

    List<UserProduct> selectByExample(UserProductExample example);

    UserProduct selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") UserProduct record, @Param("example") UserProductExample example);

    int updateByExample(@Param("record") UserProduct record, @Param("example") UserProductExample example);

    int updateByPrimaryKeySelective(UserProduct record);

    int updateByPrimaryKey(UserProduct record);
}